package com.userInfoService.scheduled;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//定时调用配置中心的接口来更新配置信息
@Component
public class ConfigScheduled {
    @Scheduled(fixedRate = 3000000)//单位是毫秒
    public void timerRate() {
        System.out.println("xxxxx");
    }
}
